package com.binc.testspring.dto;

import com.binc.testspring.common.annotation.CompareFiled;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 数据库实体类
 */
@Data
@Builder
@XmlRootElement(name="root",namespace = "binc")
public class Student implements Serializable {
    Long id;
    @CompareFiled(name="姓名")
    String name;
    @CompareFiled(name="年龄")
    Integer age;

    @Tolerate
    public Student() {
    }
}
